package com.cmpe.group6.storyroad.jsonClasses;

/** Representation of the story links.
 *
 */
public class StoryLinkObject {

	private int story_id;
	private int parent_id;

	public StoryLinkObject(int id) {
		story_id = id;
	}

	public int getStory_id() {
		return story_id;
	}

	public void setStory_id(int story_id) {
		this.story_id = story_id;
	}

	@Override
	public boolean equals(Object object) {
		boolean retVal = false;
		if (object instanceof StoryLinkObject) {
			StoryLinkObject ptr = (StoryLinkObject) object;
			retVal = ptr.getStory_id() == this.getStory_id();
		}
		return retVal;
	}

	public int getParent_id() {
		return parent_id;
	}

	public void setParent_id(int parent_id) {
		this.parent_id = parent_id;
	}

}
